<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2024/10/11
  Time: 17:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>用户信息修改</title>
    <link rel="stylesheet" href="./statics/layui/css/layui.css">
</head>
<body>
<%--更新先查再改  两步 其余是一步--%>
<%--请求发给servlet--%>
   <form class="layui-form" method="post" action="user?action=update">
<%--隐藏--%>
       <input type="hidden" name="id" value="${user.id}">
       <div class="layui-form-item">
           <label class="layui-form-label">用户名</label>
           <div class="layui-input-inline layui-input-wrap">
               <input type="text" name="name" value="${user.name}"  lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
           </div>
       </div>
       <div class="layui-form-item">
           <label class="layui-form-label">密码</label>
           <div class="layui-input-inline layui-input-wrap">
               <input type="text" name="pass" value="${user.pass}"  lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
           </div>
       </div>

       <div class="layui-form-item">
           <div class="layui-input-block">
               <button type="submit" class="layui-btn" lay-submit lay-filter="demo1">更新</button>
               <button type="reset" class="layui-btn layui-btn-primary">重置</button>
           </div>
       </div>

   </form>
</body>
</html>
